﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Node
{
    public class StateManager : MonoBehaviour
    {
        public float health;
        public State currentState;

        [HideInInspector] public float delta;
        public Transform mTransform;

        private void Start()
        {
            mTransform = this.transform;
        }

        private void Update()
        {
            if(currentState != null)
            {
                currentState.Tick(this);
            }
        }
    }
}
